package org.lagou.edu.controller.assmebler;


import org.lagou.edu.controller.command.ListResponseRequest;
import org.lagou.edu.controller.command.SearchCommand;
import org.lagou.edu.controller.dto.ShopDTO;
import org.lagou.edu.controller.dto.ShopInfo;

/**
 * @author: oliver
 * @data: 2022/7/16 23:25
 **/
public class ShopAssembler {

    public static ShopDTO assemblerToShopInfo(ShopInfo shopInfo, Long stockInfo) {
        ShopDTO shop = new ShopDTO();
        shop.setShopInfo(shopInfo);
        shop.setStockInfo(stockInfo);
        return shop;
    }

    public static ListResponseRequest assemblerCommandToRequest(SearchCommand command) {
        return new ListResponseRequest();
    }
}
